import requests
import app


class LoginApi:

    def __init__(self):
        self.login_url = app.base_url + '/api/sys/login'

    def login(self, login_data):
        return requests.post(url=self.login_url, json=login_data)
